Changing the kernel chosen by GRUB

31 Dec

Determine the options (both main and sub menu):

awk 'BEGIN {submenu=0;menu=0};$1 ~ /submenu/ {submenu+=1;menu=0;sub(/\$.*$/,"");print submenu" " $0};/menuentry / && /Linux/ {gsub(/menuentry/,"");gsub(/--class.*$/,"");gsub(/\047/,"");print "  "submenu">"menu " " $0;menu+=1}' /boot/grub/grub.cfg

Change the default to the desired option:

nano /etc/default/grub

Where X>X is the menu item (0 is the top)
This must be in quotes!

Save your new configuration:

update-grub

5 thoughts on “Changing the kernel chosen by GRUB

  1. propecia hair As long as we know the gap clearly, we can not ask all the people to look at the problem like us straight men who study science and engineering, right There was ed supplements laughter in the conference room, Luo Jia said it well, Huaxia people are more confident than before, which is not necessarily a bad thing, as long as Xingchen Technology is own position is not messed up

Leave a Reply

Your email address will not be published.